<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>	
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>编辑场馆</title>
<link rel="stylesheet" href="<%=path %>/css/bootstrap.css" />
<link rel="stylesheet" href="<%=path %>/css/css.css" />
<script type="text/javascript" src="<%=path %>/js/jquery1.9.0.min.js"></script>
<script type="text/javascript" src="<%=path %>/js/bootstrap.min.js"></script>
<script type="text/javascript" src="<%=path %>/js/sdmenu.js"></script>
<script type="text/javascript" src="<%=path %>/js/laydate/laydate.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		$("#submit").click(function(){
			var ven_name=$("#ven_name").val();
			var ven_no=$("#ven_no").val();
			var ven_address=$("#ven_address").val();
			var ven_host=$("#ven_host").val();
			var ven_phone=$("#ven_phone").val();
			var ven_area=$("#ven_area").val();
			var ven_exh_no=$("#ven_exh_no").val();
			var ven_height=$("#ven_height").val();
			var ven_weight=$("#ven_weight").val();
			var ven_door_height=$("#ven_door_height").val();
			var ven_door_width=$("#ven_door_width").val();
			var ven_remark=$("#ven_remark").val();
			if($.trim(ven_name)==""){
				alert("请输入名称");
				return false;
			}
			if($.trim(ven_no)==""){
				alert("请输入场馆号");
				return false;
			}
			if($.trim(ven_address)==""){
				alert("请输入场馆地址");
				return false;
			}
			if($.trim(ven_host)==""){
				alert("请输入负责人");
				return false;
			}
			if($.trim(ven_phone)==""){
				alert("请输入联系电话");
				return false;
			}
			if($.trim(ven_area)==""){
				alert("请输入场馆面积");
				return false;
			}
			if($.trim(ven_exh_no)==""){
				alert("请输入展位数");
				return false;
			}
			if($.trim(ven_height)==""){
				alert("请输入限高");
				return false;
			}
			if($.trim(ven_weight)==""){
				alert("请输入承重");
				return false;
			}
			if($.trim(ven_door_height)==""){
				alert("请输入门高");
				return false;
			}
			if($.trim(ven_door_width)==""){
				alert("请输入门宽");
				return false;
			}
			if($.trim(ven_remark)==""){
				alert("请输入备注");
				return false;
			}
			
			alert("编辑成功");
			$("#form").submit();
		});
	});
</script>
</head>
<body>
	<div class="right_cont">
		<ul class="breadcrumb">当前位置：光管管理<span class="divider">/</span></span>编辑场馆</ul>
	</div>
	<div class="title_right"><strong>编辑场馆</strong></div>
	<form action="<%=path %>/admin/tbvenueUpdateOk.do" id="form" method="post">
	<table class="table table-bordered" style="width:400px" align="center">
		<tr>
			<td width="50%" align="right" bgcolor="#f1f1f1">场馆名称：</td>
			<td width="50%">
				<input type="text" name="ven_name" value="${requestScope.tbvenue.ven_name}" maxlength="30" id="ven_name" class="span1-1" />
				<input type="hidden" name="ven_id" value="${requestScope.tbvenue.ven_id}" maxlength="30" id="ven_id" class="span1-1" />
			</td>
			<td width="50%" align="right" bgcolor="#f1f1f1">场馆号：</td>
			<td width="50%">
				<input type="text" name="ven_no" value="${requestScope.tbvenue.ven_no}" maxlength="10" id="ven_no" class="span1-1" />
			</td>
		</tr>
		<tr>
			<td width="50%" align="right" bgcolor="#f1f1f1">场馆地址：</td>
			<td width="50%" colspan="3">
				<input type="text" name="ven_address" value="${requestScope.tbvenue.ven_address}" maxlength="40" style="width:300px"  id="ven_address" class="span1-1" />
			</td>
		</tr>
		<tr>
			<td width="50%" align="right" bgcolor="#f1f1f1">负责人：</td>
			<td width="50%">
				<input type="text" name="ven_host" value="${requestScope.tbvenue.ven_host}" maxlength="10" id="ven_host" class="span1-1" />
			</td>
			<td width="50%" align="right" bgcolor="#f1f1f1">联系电话：</td>
			<td width="50%">
				<input type="text" name="ven_phone" value="${requestScope.tbvenue.ven_phone}" maxlength="15" id="ven_phone" class="span1-1" />
			</td>
		</tr>
		<tr>
			<td width="50%" align="right" bgcolor="#f1f1f1">场馆面积：</td>
			<td width="50%">
				<input type="text" name="ven_area" value="${requestScope.tbvenue.ven_area}" maxlength="5" id="ven_area" class="span1-1" />㎡
			</td>
			<td width="50%" align="right" bgcolor="#f1f1f1">展位数：</td>
			<td width="50%">
				<input type="text" name="ven_exh_no" value="${requestScope.tbvenue.ven_exh_no}" maxlength="5" id="ven_exh_no" class="span1-1" />个
			</td>
		</tr>
		<tr>
			<td width="50%" align="right" bgcolor="#f1f1f1">限高：</td>
			<td width="50%">
				<input type="text" name="ven_height" value="${requestScope.tbvenue.ven_height}" maxlength="5" id="ven_height" class="span1-1" />米
			</td>
			<td width="50%" align="right" bgcolor="#f1f1f1">承重：</td>
			<td width="50%">
				<input type="text" name="ven_weight" value="${requestScope.tbvenue.ven_weight}" maxlength="5" id="ven_weight" class="span1-1" />顿
			</td>
		</tr>
		<tr>
			<td width="50%" align="right" bgcolor="#f1f1f1">门高：</td>
			<td width="50%">
				<input type="text" name="ven_door_height" value="${requestScope.tbvenue.ven_door_height}" maxlength="5" id="ven_door_height" class="span1-1" />米
			</td>
			<td width="50%" align="right" bgcolor="#f1f1f1">门宽：</td>
			<td width="50%">
				<input type="text" name="ven_door_width" value="${requestScope.tbvenue.ven_door_width}" maxlength="20" id="ven_door_width" class="span1-1" />米
			</td>
		</tr>
		<tr>
			<td width="50%" align="right" bgcolor="#f1f1f1">备注：</td>
			<td width="50%" colspan="3">
				<textarea rows="3" name="ven_remark" style="width:300px"  id="ven_remark" cols="60">${requestScope.tbvenue.ven_remark}</textarea>
			</td>
		</tr>
	</table>
	<table class="margin-bottom-20 table  no-border">
		<tr>
			<td class="text-center" colspan="4">
				<input type="submit" id="submit" value="确定" class="btn btn-info " style="width: 80px;" />
			</td>
		</tr>
	</table>
	</form>
</body>
</html>